Skip to content

Support AZURE_TRUSTED_SIGNING_ACCOUNT_NAME, AZURE_CERTIFICATE_PROFILE_NAME#13

Merged
Levminer merged 3 commits intoLevminer:mainfrom
wojtekmach:wm-more-env-vars
Nov 23, 2025
Merged

Support AZURE_TRUSTED_SIGNING_ACCOUNT_NAME, AZURE_CERTIFICATE_PROFILE_NAME#13
Levminer merged 3 commits intoLevminer:mainfrom
wojtekmach:wm-more-env-vars

Conversation

@wojtekmach
Copy link
Copy Markdown
Contributor

First of all, thank you for this project, it's a huge help for our Tauri app distribution.

Following https://v2.tauri.app/distribute/sign/windows/#modify-your-tauriconfjson-file, we're setting:

{
  "bundle": {
    "windows": {
      "signCommand": "trusted-signing-cli -e https://wus2.codesigning.azure.net -a MyAccount -c MyProfile -d MyApp %1"
    }
  }
}

While the account name (-a) and profile name (-c) values are scoped to the azure account, on principle we'd rather not disclose those in a public GitHub repo so we want to use GitHub secrets for these. Unfortunately,

"signCommand": "trusted-signing-cli -a %AZURE_TRUSTED_SIGNING_ACCOUNT_NAME% ... %1"

does not work because env vars are not expanded.

"signCommand": {"cmd": "cmd.exe", "args": ["/c", "... %1"]}

does not work either because %1 is not being interpolated.

An existing workaround is to use a wrapper script, e.g.:

"signCommand": "sign.bat %1"

however I'd rather avoid an external file and instead only maintain the workflow file, release.yml, and tauri.conf.json.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for specifying Azure Trusted Signing account name and certificate profile name via environment variables (AZURE_TRUSTED_SIGNING_ACCOUNT_NAME and AZURE_CERTIFICATE_PROFILE_NAME), addressing the use case where users want to store these values as GitHub secrets rather than in their public repository's tauri.conf.json file.

Key changes:

  • Added environment variable support for account and certificate profile arguments using clap's env attribute
  • Updated documentation comment from "Code Signing Account name" to "Trusted Signing Account name"
  • Added documentation in README for the new environment variables

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/main.rs Added env attributes to account and certificate arguments to enable environment variable configuration; updated comment terminology to "Trusted Signing"
READMe.md Documented the new environment variables and their corresponding CLI flags

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main.rs Outdated
Comment thread READMe.md Outdated
Levminer and others added 2 commits November 23, 2025 14:28
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Levminer
Copy link
Copy Markdown
Owner

Thanks!

@Levminer Levminer merged commit 5415376 into Levminer:main Nov 23, 2025
@wojtekmach
Copy link
Copy Markdown
Contributor Author

Hello, we've been successfully using this patch in a couple of our apps. A new release would be appreciated. No rush obviously, we can continue to point to ref.

@Levminer
Copy link
Copy Markdown
Owner

Published a release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants